<%--
  Created by IntelliJ IDEA.
  User: 于永祥
  Date: 2022/9/29
  Time: 21:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set value="${pageContext.request.contextPath}" var="path"></c:set>
<script src="/static/web/js/jquery-3.4.1.min.js"></script>

<div class="pxp-dashboard-side-panel d-none d-lg-block">
    <div class="pxp-logo">
        <a href="/web/personal/index" class="pxp-animate"><span style="color: var(--pxpMainColor)">W</span>anma<span style="color: var(--pxpMainColor)">R</span>ecruit</a>
    </div>

    <nav class="mt-3 mt-lg-4 d-flex justify-content-between flex-column pb-100">
        <div class="pxp-dashboard-side-label">管理工具</div>
        <ul class="list-unstyled">
            <li class="company1"><a href="/web/companies/companyIndex"><span class="fa fa-home"></span>企业主页</a></li>
            <li class="company2"><a href="/web/companies/companyProfile"><span class="fa fa-pencil"></span>企业信息</a></li>
            <li class="company3"><a href="/web/companies/publishNewPosition"><span class="fa fa-file-text-o"></span>发布职位</a></li>
            <li class="company4"><a href="/web/companies/companyPosition"><span class="fa fa-briefcase"></span>职位管理</a></li>
            <li class="company5"><a href="/web/companies/companiesHomePageCandidates"><span class="fa fa-user-circle-o"></span>求职者</a></li>
            <li class="company6"><a href="https://pixelprime.co/themes/jobster/company-dashboard-subscriptions.html"><span class="fa fa-credit-card"></span>订阅</a></li>
            <li class="company7"><a href="https://pixelprime.co/themes/jobster/company-dashboard-password.html"><span class="fa fa-lock"></span>修改密码</a></li>
        </ul>
        <div class="pxp-dashboard-side-label mt-3 mt-lg-4">信息管理</div>
        <ul class="list-unstyled">
            <li>
                <a href="/web/companies/companyMessage" class="d-flex justify-content-between align-items-center">
                    <div><span class="fa fa-envelope-o"></span>收件箱</div>
                    <span class="badge rounded-pill">14</span>
                </a>
            </li>
            <li>
                <a href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html" class="d-flex justify-content-between align-items-center">
                    <div><span class="fa fa-bell-o"></span>通知消息</div>
                    <span class="badge rounded-pill">5</span>
                </a>
            </li>
        </ul>
    </nav>

    <nav class="pxp-dashboard-side-user-nav-container">
        <div class="pxp-dashboard-side-user-nav">
            <div class="dropdown pxp-dashboard-side-user-nav-dropdown dropup">
                <a role="button" class="dropdown-toggle" data-bs-toggle="dropdown">
                    <div class="pxp-dashboard-side-user-nav-avatar pxp-cover" style="background-image: url(/static/images/${sessionScope.company.companyLogo});"></div>
                    <div class="pxp-dashboard-side-user-nav-name">${sessionScope.company.name}</div>
                </a>
                <ul class="dropdown-menu">
                    <li><a class="dropdown-item" href="/web/companies/companyProfile">编辑企业信息</a></li>
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-profile.html">修改密码</a></li>
                    <li><a class="dropdown-item" href="index.html">退出</a></li>
                </ul>
            </div>
        </div>
    </nav>
</div>
<div class="pxp-dashboard-content">
    <div class="pxp-dashboard-content-header">
        <div class="pxp-nav-trigger navbar pxp-is-dashboard d-lg-none">
            <a role="button" data-bs-toggle="offcanvas" data-bs-target="#pxpMobileNav" aria-controls="pxpMobileNav">
                <div class="pxp-line-1"></div>
                <div class="pxp-line-2"></div>
                <div class="pxp-line-3"></div>
            </a>
            <div class="offcanvas offcanvas-start pxp-nav-mobile-container pxp-is-dashboard" tabindex="-1" id="pxpMobileNav">
                <div class="offcanvas-header">
                    <div class="pxp-logo">
                        <a href="/web/personal/index" class="pxp-animate"><span style="color: var(--pxpMainColor)">W</span>anma<span style="color: var(--pxpMainColor)">R</span>ecruit</a>
                    </div>
                    <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
                </div>
                <div class="offcanvas-body">
                    <nav class="pxp-nav-mobile">
                        <ul class="navbar-nav justify-content-end flex-grow-1">
                            <li class="pxp-dropdown-header">管理工具</li>
                            <li class="nav-item"><a href="/web/companies/companyIndex"><span class="fa fa-home"></span>企业主页</a></li>
                            <li class="nav-item"><a href="/web/companies/companyProfile"><span class="fa fa-pencil"></span>企业信息</a></li>
                            <li class="nav-item"><a href="/web/companies/publishNewPosition"><span class="fa fa-file-text-o"></span>发布职位</a></li>
                            <li class="nav-item"><a href="/web/companies/companyPosition"><span class="fa fa-briefcase"></span>职位管理</a></li>
                            <li class="nav-item"><a href="/web/companies/companiesHomePageCandidates"><span class="fa fa-user-circle-o"></span>求职者</a></li>
                            <li class="nav-item"><a href="https://pixelprime.co/themes/jobster/company-dashboard-subscriptions.html"><span class="fa fa-credit-card"></span>订阅</a></li>
                            <li class="nav-item"><a href="https://pixelprime.co/themes/jobster/company-dashboard-password.html"><span class="fa fa-lock"></span>修改密码</a></li>
                            <li class="pxp-dropdown-header mt-4">消息管理</li>
                            <li class="nav-item">
                                <a href="/web/companies/userMessage" class="d-flex justify-content-between align-items-center">
                                    <div><span class="fa fa-envelope-o"></span>收件箱</div>
                                    <span class="badge rounded-pill">14</span>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html" class="d-flex justify-content-between align-items-center">
                                    <div><span class="fa fa-bell-o"></span>通知消息</div>
                                    <span class="badge rounded-pill">5</span>
                                </a>
                            </li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
        <nav class="pxp-user-nav pxp-on-light">
            <a href="/web/companies/publishNewPosition" class="btn rounded-pill pxp-nav-btn">发布职位</a>
            <div class="dropdown pxp-user-nav-dropdown pxp-user-notifications">
                <a role="button" class="dropdown-toggle" data-bs-toggle="dropdown">
                    <span class="fa fa-bell-o"></span>
                    <div class="pxp-user-notifications-counter">5</div>
                </a>
                <ul class="dropdown-menu dropdown-menu-end">
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html"><strong>Scott Goodwin</strong> applied for <strong>Software Engineer</strong>. <span class="pxp-is-time">20m</span></a></li>
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html"><strong>Alayna Becker</strong> sent you a message. <span class="pxp-is-time">1h</span></a></li>
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html"><strong>Erika Tillman</strong> applied for <strong>Team Leader</strong>. <span class="pxp-is-time">2h</span></a></li>
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html"><strong>Scott Goodwin</strong> applied for <strong>Software Engineer</strong>. <span class="pxp-is-time">5h</span></a></li>
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html"><strong>Alayna Becker</strong> sent you a message. <span class="pxp-is-time">1d</span></a></li>
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html"><strong>Erika Tillman</strong> applied for <strong>Software Engineer</strong>. <span class="pxp-is-time">3d</span></a></li>
                    <li><hr class="dropdown-divider"></li>
                    <li><a class="dropdown-item pxp-link" href="https://pixelprime.co/themes/jobster/company-dashboard-notifications.html">阅读全部 >></a></li>
                </ul>
            </div>
            <div class="dropdown pxp-user-nav-dropdown">
                <a role="button" class="dropdown-toggle" data-bs-toggle="dropdown">
                    <div class="pxp-user-nav-avatar pxp-cover" style="background-image: url(/static/images/${sessionScope.company.companyLogo});"></div>
                    <div class="pxp-user-nav-name d-none d-md-block">${sessionScope.company.name}</div>
                </a>
                <ul class="dropdown-menu dropdown-menu-end">
                    <li><a class="dropdown-item" href="/web/companies/companyProfile">编辑企业信息</a></li>
                    <li><a class="dropdown-item" href="https://pixelprime.co/themes/jobster/company-dashboard-profile.html">修改密码</a></li>
                    <li><a class="dropdown-item" href="index.html">退出</a></li>
                </ul>
            </div>
        </nav>
    </div>

    <script>
        $(function (){
            if ($("title").html()=="企业-企业主页")
            {
                $(".company1").attr("class","pxp-active");
            }
            if ($("title").html()=="企业-企业信息")
            {
                $(".company2").attr("class","pxp-active");
            }
            if ($("title").html()=="企业-发布职位")
            {
                $(".company3").attr("class","pxp-active");
            }
            if ($("title").html()=="企业-职位管理")
            {
                $(".company4").attr("class","pxp-active");
            }
            if ($("title").html()=="企业-求职者")
            {
                $(".company5").attr("class","pxp-active");
            }
            if ($("title").html()=="企业-订阅")
            {
                $(".company6").attr("class","pxp-active");
            }
            if ($("title").html()=="企业-修改密码")
            {
                $(".company7").attr("class","pxp-active");
            }
        });
    </script>